snap to attention

Translations
se mettre au garde-à-vous
Definitions
To suddenly become alert and attentive, often in response to a command or a significant event.